From: Jasper St. Pierre Date: Mon, 17 Jun 2013 22:24:52 +0000 (-0400) Subject: network: Fix visibility of the VPN icon X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3822 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=621810c409e8639a7fa4e205bece6a848f483fab;p=gnome-shell.git network: Fix visibility of the VPN icon This is a regression from e6c239d0f3318984815049abb621f6b0cb3dc85e, where we removed the calls to hide()/show() when we had a VPN device vs. not. https://bugzilla.gnome.org/show_bug.cgi?id=702536 --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index dde566ed3..1fa8ebc9f 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1158,7 +1158,6 @@ const NMApplet = new Lang.Class({ this.parent('network-offline-symbolic', _('Network')); this._vpnIcon = this.addIcon(null); - this._vpnIcon.hide(); // Device types this._dtypes = { }; @@ -1602,5 +1601,6 @@ const NMApplet = new Lang.Class({ } this._vpnIcon.icon_name = this._vpnSection.getIndicatorIcon(); + this._vpnIcon.visible = (this._vpnIcon.icon_name != ''); } });